#  *
# ***
# *****
# ***
#  *
num = 3
# for i in range(1, 3 + 1):
#     # 循环空格
#     for j in range(3 - 1, 0, -1):
#         print(" ", end="")
#     # 循环*
#     for k in range(1, 2 * 3, 2):
#         print("*", end="")
#     print()

# 7  8  5
# hang = 7
# for i in range(1, 2*((hang-1)//2+1), 2):
#     print(("*" * i).center(hang))
# for i in range(2*((hang-1)//2)-1, 0, -2):
#     print(("*" * i).center(hang))

# 写一个九九乘法表
for i in range(1, 10):
    for j in range(1, i + 1):
        print("%d * %d = %d" % (j, i, i * j), end="\t")
    print()

# 打印水仙花数
for i in range(100, 1000):
    a = i % 10
    b = i // 10 % 10
    c = i // 100
    if a ** 3 + b ** 3 + c ** 3 == i:
        print(i)
# 菱形

# 打印水仙花数

# 完数

# 质数

# 斐波那契数列





